package com.hongshu.idle.service.idle;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hongshu.idle.domain.entity.IdlePaymentPay;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * 闲宝订单
 *
 * @author hongshu
 */
public interface IIdlePaymentPayService extends IService<IdlePaymentPay> {

    /**
     * 创建订单
     *
     * @param paymentOrderId 订单信息
     */
    Object createPaymentPay(String paymentOrderId);

    /**
     * 支付
     */
    Map<String, Object> finishPay(String paymentPayId);

    /**
     * 取消支付
     */
    void cancelPay(String paymentPayId);

    /**
     * 查询支付结果
     */
    Object payStatus(String paymentPayId);

    /**
     * 更新支付状态
     */
    void updateOrderStatus(String paymentOrderId);

    /**
     * 支付结果回调
     */
    String handleAlipayNotify(HttpServletRequest request);
}
